import request from '@/utils/request'

// 查询设计方案列表
export function listSchem(query) {
  return request({
    url: '/decor/schem/list',
    method: 'get',
    params: query
  })
}

// 查询设计方案详细
export function getSchem(schemeId) {
  return request({
    url: '/decor/schem/' + schemeId,
    method: 'get'
  })
}

// 新增设计方案
export function addSchem(data) {
  return request({
    url: '/decor/schem',
    method: 'post',
    data: data
  })
}

// 修改设计方案
export function updateSchem(data) {
  return request({
    url: '/decor/schem',
    method: 'put',
    data: data
  })
}
// 修改状态
export function updateStatusSchem(data) {
  return request({
    url: '/decor/schem/status',
    method: 'put',
    data: data
  })
}
// 删除设计方案
export function delSchem(schemeId) {
  return request({
    url: '/decor/schem/' + schemeId,
    method: 'delete'
  })
}
export function getRoomType(query) {
  return request({
    url: "/decor/classType/public/list",
    method: "get",
    params: query,
  });
}
// 平台端发布作品新增 
export function platformAdd(data) {
  return request({
    url: '/decor/platform/designer/addScheme',
    method: 'post',
    data: data
  })
}